package cn.exrick.xboot.base.entity

import cn.exrick.xboot.core.base.XbootBaseEntityKt
import cn.exrick.xboot.core.common.utils.SnowFlakeUtil
import com.baomidou.mybatisplus.annotation.TableId
import com.baomidou.mybatisplus.annotation.TableName
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import org.hibernate.annotations.DynamicInsert
import org.hibernate.annotations.DynamicUpdate
import javax.persistence.Entity
import javax.persistence.Id
import javax.persistence.Table

/**
 * @author Fei
 */
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "en_security_advisor_job_train_part")
@TableName("en_security_advisor_job_train_part")
@ApiModel(value = "安全顾问岗位培训分支")
data class SecurityAdvisorJobTrainPart(

        @ApiModelProperty("岗位培训id")
        var jobTrainId: String? = null,

        @ApiModelProperty("岗位培训分支标题")
        var trainPartTitle: String? = null,

        @ApiModelProperty("岗位培训分支内容")
        var trainPartContent: String? = null
) : XbootBaseEntityKt() {

    @Id
    @TableId
    override var id: String = SnowFlakeUtil.nextId().toString()


    companion object {
        const val serialVersionUID = 1L
    }
}